#include "mainwindow.h"
#include <QApplication>
#include <QSplashScreen>
#include <QThread>
#include "form.h"
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    //定义图片类
    QPixmap pix(":/photo/123.jpg");
    //定义动画类
    QSplashScreen splash(pix);
    //启动动画类
    splash.show();
    //延时
    QThread::sleep(5);
    //关闭动画类
    splash.close();
    w.show();
//    Form *w = new Form();
//    w->show();
    return a.exec();
}
